<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateHostConfigInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('host_config_info', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->integer('charm_min')->default(0)->comment('魅力值最小');
            $table->integer('charm_max')->default(0)->comment('魅力值最大');
            $table->smallInteger('coin_setting')->default(0)->comment('可选资费');
            $table->string('star_icon', 50)->default('')->comment('星标');
            $table->timestamps();
            $table->tinyInteger('flag')->default(1)->comment('记录状态');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('host_config_info');
    }
}
